package org.zjx.analysis.flag;

import org.zjx.core.IWindow;
import org.zjx.util.ImageUtil;

import java.awt.*;
import java.awt.image.BufferedImage;

public class FlagsZZGAnalysis extends BaseFlagAnalysis{

    public FlagsZZGAnalysis(IWindow window, BufferedImage screenshot) {
        super(window, screenshot);
    }

    @Override
    protected Rectangle getContentArea() {
        return ImageUtil.createRect(9, 35, 447, 310);
    }

    @Override
    protected Point getMapSize() {
        return  new Point(192,119);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return ImageUtil.createRect(430, 8, 448, 26);
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(171, 140, 627, 458);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(9, 122, 30, 150);
    }

    @Override
    public BufferedImage getRefImage() {
        String image = "iVBORw0KGgoAAAANSUhEUgAAABYAAAAdCAYAAACuc5z4AAAEmElEQVR4XlWWkYMjSxDGGwMPAgcDDwYeDAQaFgYCAwcNBwMLgYWBhYGDwMFAYOAgEAgsDBwEDgILweDCwcJBMBhceJD/oF79qqdzeVCZSWb6q6+/+qo67n0d5BhyWftMdo+FfGxr4bfTEGRocumqTLZfvRw6L6eVPt+Ucn2t5bipZfHFy9RPxP0zkfpzJqfjUt5eW1kfMnG89LEPBrwspnLuKlt8fqnl0HSWhO/E+76R04/6fwnelED9mEs+d7L+Vkq/LGX/UogzIGUJO4BPi9KSHJ5quXzfymXTye4wyG7XGRuuJwW1IIGuJQEEWFflE2lnU3FvvW7x2Mr5Vy/rupBzW5g070+R8XZeiN8c5PT7YL/XxURszRDluvyMO4IQxABnjRuWlRz1BZigMYsJGBNt6Q24//ZHLt5LoAfdPkDbkBnTJKcjE0BtnRkbFqes566R67+DdK+DVJulhOkkyqU6H1a1gRHI8rFXOVelhM+FNFpIV88jMECm7fdKBnWBLVCAvcayDbIcCtm36g6VCsl4/rb0N9bNwhso4UsF9s3CgG9bxDKqIbqxcDGf2k54BjDvsWXYJRlCkUmmBM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